﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Car
    {
        private string name;
        public string Name
        {
            get { return name; }
            set { name = value; }
        }
        public Car(string name)
        {
            this.Name = name;
        }
        public void car()
        {
            Console.WriteLine("一辆{0}在跑",this.name);
        }
    }

    class BFZC : Car, IBfzc
    {
        public BFZC(string name) : base(name)
        {
         
        }

        public void fly()
        {
            Console.WriteLine("我还会飞");
        }
    }
}
